{extend name="public:edit" /}

{block name="content"}

    <div class="layui-form-item">
        <label class="layui-form-label">代理昵称</label>
        <div class="layui-input-block">
            <input type="text" name="agency_user_nickname" value="{$info['agency_user_nickname']}" lay-verify="required" placeholder="请输入代理昵称"
                autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码 </label>
        <div class="layui-input-block">
            <input type="text" name="agency_user_pass"  placeholder="点此请输入密码" autocomplete="off"
                class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">确认密码 </label>
        <div class="layui-input-block">
            <input type="text" name="ra_agency_user_pass" placeholder="点此请确认密码"
                autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-block">
            <input type="radio" name="agency_user_check" value="0" {$info['agency_user_check'] == 0 ? 'checked' : ''}  title="未审核">
            <input type="radio" name="agency_user_check" value="1" {$info['agency_user_check'] == 1 ? 'checked' : ''} title="审核未通过">
            <input type="radio" name="agency_user_check" value="2" {$info['agency_user_check'] == 2 ? 'checked' : ''} title="审核通过">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">权限ID</label>
        <div class="layui-input-block">
            <select name="agency_user_rank_id" id="">
                {if $rank}
                    {foreach $rank as $k => $v}
                        <option value="{$v['id']}" {$info['agency_user_rank_id'] == $v['id'] ? 'selcted' : ''}>{$v['agency_rank_title']}</option>
                    {/foreach}
                {else}
                    <option value=""></option>
                {/if}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">是否显示</label>
        <div class="layui-input-block">
            <input type="radio" name="agency_user_is_show" value="0" {$info['agency_user_is_show'] == 0 ? 'checked' : ''} title="否">
            <input type="radio" name="agency_user_is_show" value="1" {$info['agency_user_is_show'] == 1 ? 'checked' : ''} title="是">
        </div>
    </div>

{/block}


{block name="script"}
<script>
    views.verify(false).get();
</script>
{/block}